package com.ruoyi.yuce.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 2020年1月故障记录对象 faultrecord202001
 *
 * @author ruoyi
 * @date 2023-02-14
 */
public class FaultRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @Excel(name = "场站id")
    private Integer czid;

    /** 场站名 */
    @Excel(name = "场站名")
    private String czname;

    /** 部件类型 */
    @Excel(name = "部件类型id")
    private Integer bjtypeid;

    /** 部件类型 */
    @Excel(name = "部件类型")
    private String bjtypename;

    /** 部件id */
    @Excel(name = "部件id")
    private Integer bjid;

    /** 部件名 */
    @Excel(name = "部件名")
    private String bjname;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "日期", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date riqi;

    /** 部件参数 */
    @Excel(name = "部件状态", readConverterExp = "1=正常,141=故障")
    private Integer bjpara;

    /** $column.columnComment */
    private Integer subnetid;

    /** $column.columnComment */
    private Integer maintype;

    /** 错误类型 */
    private Integer subtype;

    /** $column.columnComment */
    private Integer alarmlevel;

    /** $column.columnComment */
    private Integer quanxian;

    /** $column.columnComment */
    private String bjno;

    /** $column.columnComment */
    private Integer msecond;

    /** $column.columnComment */
    private Date eventtime;

    /** $column.columnComment */
    private String eventmsg;

    /** $column.columnComment */
    private String vollevel;

    /** $column.columnComment */
    private Integer baytype;

    /** $column.columnComment */
    private Integer bayid;

    /** $column.columnComment */
    private String bayname;

    /** $column.columnComment */
    private String devicename;

    /** $column.columnComment */
    private Integer voltageid;

    /** $column.columnComment */
    private Integer polystatetype;

    /** 查询日期 */
    private String criqi;
    private Integer id;  //分析表中设定排名
    private Integer faultnum;   //故障次数
    private Integer faultnum2020;   //故障次数
    private Integer faultnum2021;   //故障次数
    private Integer faultnum2022;   //故障次数
    private Integer faultnum2023;   //故障次数
    private String faultcontent;    //故障原因
    private String faultyear;    //年份
    private String faultmonth;    //月份

    public Integer getFaultnum2020() {
        return faultnum2020;
    }

    public void setFaultnum2020(Integer faultnum2020) {
        this.faultnum2020 = faultnum2020;
    }

    public Integer getFaultnum2021() {
        return faultnum2021;
    }

    public void setFaultnum2021(Integer faultnum2021) {
        this.faultnum2021 = faultnum2021;
    }

    public Integer getFaultnum2022() {
        return faultnum2022;
    }

    public void setFaultnum2022(Integer faultnum2022) {
        this.faultnum2022 = faultnum2022;
    }

    public Integer getFaultnum2023() {
        return faultnum2023;
    }

    public void setFaultnum2023(Integer faultnum2023) {
        this.faultnum2023 = faultnum2023;
    }

    public String getFaultyear() {
        return faultyear;
    }

    public void setFaultyear(String faultyear) {
        this.faultyear = faultyear;
    }

    public String getFaultmonth() {
        return faultmonth;
    }

    public void setFaultmonth(String faultmonth) {
        this.faultmonth = faultmonth;
    }

    public String getFaultcontent() {
        return faultcontent;
    }

    public void setFaultcontent(String faultcontent) {
        this.faultcontent = faultcontent;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFaultnum() {
        return faultnum;
    }

    public void setFaultnum(Integer faultnum) {
        this.faultnum = faultnum;
    }

    public void setRiqi(Date riqi)
    {
        this.riqi = riqi;
    }

    public Date getRiqi()
    {
        return riqi;
    }
    public void setMaintype(Integer maintype)
    {
        this.maintype = maintype;
    }

    public Integer getMaintype()
    {
        return maintype;
    }
    public void setSubtype(Integer subtype)
    {
        this.subtype = subtype;
    }

    public Integer getSubtype()
    {
        return subtype;
    }
    public void setAlarmlevel(Integer alarmlevel)
    {
        this.alarmlevel = alarmlevel;
    }

    public Integer getAlarmlevel()
    {
        return alarmlevel;
    }
    public void setQuanxian(Integer quanxian)
    {
        this.quanxian = quanxian;
    }

    public Integer getQuanxian()
    {
        return quanxian;
    }


    public void setBjtypeid(Integer bjtype)
    {
        this.bjtypeid = bjtype;
    }

    public Integer getBjtypeid()
    {
        return bjtypeid;
    }
    public void setBjtypename(String bjtypename)
    {
        this.bjtypename = bjtypename;
    }

    public String getBjtypename()
    {
        return bjtypename;
    }
    public void setBjid(Integer bjid)
    {
        this.bjid = bjid;
    }

    public Integer getBjid()
    {
        return bjid;
    }
    public void setBjpara(Integer bjpara)
    {
        this.bjpara = bjpara;
    }

    public Integer getBjpara()
    {
        return bjpara;
    }
    public void setSubnetid(Integer subnetid)
    {
        this.subnetid = subnetid;
    }

    public Integer getSubnetid()
    {
        return subnetid;
    }
    public void setCzid(Integer czid)
    {
        this.czid = czid;
    }

    public Integer getCzid()
    {
        return czid;
    }
    public void setCzname(String czname)
    {
        this.czname = czname;
    }

    public String getCzname()
    {
        return czname;
    }
    public void setBjname(String bjname)
    {
        this.bjname = bjname;
    }

    public String getBjname()
    {
        return bjname;
    }
    public void setBjno(String bjno)
    {
        this.bjno = bjno;
    }

    public String getBjno()
    {
        return bjno;
    }
    public void setMsecond(Integer msecond)
    {
        this.msecond = msecond;
    }

    public Integer getMsecond()
    {
        return msecond;
    }
    public void setEventtime(Date eventtime)
    {
        this.eventtime = eventtime;
    }

    public Date getEventtime()
    {
        return eventtime;
    }
    public void setEventmsg(String eventmsg)
    {
        this.eventmsg = eventmsg;
    }

    public String getEventmsg()
    {
        return eventmsg;
    }
    public void setVollevel(String vollevel)
    {
        this.vollevel = vollevel;
    }

    public String getVollevel()
    {
        return vollevel;
    }
    public void setBaytype(Integer baytype)
    {
        this.baytype = baytype;
    }

    public Integer getBaytype()
    {
        return baytype;
    }
    public void setBayid(Integer bayid)
    {
        this.bayid = bayid;
    }

    public Integer getBayid()
    {
        return bayid;
    }
    public void setBayname(String bayname)
    {
        this.bayname = bayname;
    }

    public String getBayname()
    {
        return bayname;
    }
    public void setDevicename(String devicename)
    {
        this.devicename = devicename;
    }

    public String getDevicename()
    {
        return devicename;
    }
    public void setVoltageid(Integer voltageid)
    {
        this.voltageid = voltageid;
    }

    public Integer getVoltageid()
    {
        return voltageid;
    }
    public void setPolystatetype(Integer polystatetype)
    {
        this.polystatetype = polystatetype;
    }

    public Integer getPolystatetype()
    {
        return polystatetype;
    }

    public String getCriqi() {
        return criqi;
    }

    public void setCriqi(String criqi) {
        this.criqi = criqi;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("riqi", getRiqi())
            .append("maintype", getMaintype())
            .append("subtype", getSubtype())
            .append("alarmlevel", getAlarmlevel())
            .append("quanxian", getQuanxian())
            .append("bjtype", getBjtypeid())
            .append("bjtypename", getBjtypename())
            .append("bjid", getBjid())
            .append("bjpara", getBjpara())
            .append("subnetid", getSubnetid())
            .append("czid", getCzid())
            .append("czname", getCzname())
            .append("bjname", getBjname())
            .append("bjno", getBjno())
            .append("msecond", getMsecond())
            .append("eventtime", getEventtime())
            .append("eventmsg", getEventmsg())
            .append("vollevel", getVollevel())
            .append("baytype", getBaytype())
            .append("bayid", getBayid())
            .append("bayname", getBayname())
            .append("devicename", getDevicename())
            .append("voltageid", getVoltageid())
            .append("polystatetype", getPolystatetype())
            .append("criqi", getCriqi())
            .toString();
    }
}
